// pages/settle/settle.scss
.settle-container {
  min-height: 100vh;
  background: #f5f5f5;
  padding-bottom: 30rpx;
}

/* 自定义导航栏 */
.custom-nav {
  background: white;
  border-bottom: 1rpx solid #f0f0f0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  
  .nav-content {
    display: flex;
    align-items: center;
    padding: 15rpx 30rpx;
    height: 88rpx;
    position: relative;
    
    .nav-back {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 10rpx 20rpx 10rpx 10rpx;
      margin-right: 10rpx;
      
      &:active {
        opacity: 0.5;
      }
      
      .back-icon {
        width: 48rpx;
        height: 48rpx;
      }
    }
    
    .nav-title {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      font-size: 36rpx;
      font-weight: 600;
      color: #000;
      line-height: 88rpx;
    }
  }
}


/* 表单容器 */
.form-container {
  height: 100vh;
  padding: 30rpx;
  box-sizing: border-box;
}

/* 章节标题 */
.section-title {
  display: flex;
  align-items: center;
  gap: 15rpx;
  font-size: 32rpx;
  font-weight: 600;
  color: #333;
  margin-bottom: 30rpx;
  
  .title-icon {
    width: 40rpx;
    height: 40rpx;
  }
}

/* 表单组 */
.form-group {
  margin-bottom: 30rpx;
  
  .form-label {
    font-size: 28rpx;
    color: #333;
    margin-bottom: 15rpx;
    display: block;
    
    .required {
      color: #ff4757;
      margin-right: 5rpx;
    }
  }
  
  .input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12rpx;
    padding: 25rpx 20rpx;
    border: 2rpx solid #e0e0e0;
    
    .input-icon {
      width: 36rpx;
      height: 36rpx;
      margin-right: 15rpx;
      opacity: 0.5;
    }
    
    .form-input {
      flex: 1;
      font-size: 28rpx;
      color: #333;
    }
  }
  
  .form-textarea {
    width: 100%;
    min-height: 200rpx;
    background: white;
    border-radius: 12rpx;
    padding: 25rpx 20rpx;
    border: 2rpx solid #e0e0e0;
    font-size: 28rpx;
    box-sizing: border-box;
  }
  
  .char-count {
    display: block;
    text-align: right;
    font-size: 24rpx;
    color: #999;
    margin-top: 10rpx;
  }
}

/* 类型选择器 */
.type-selector {
  display: flex;
  gap: 20rpx;
  
  .type-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15rpx;
    padding: 30rpx 20rpx;
    background: white;
    border-radius: 12rpx;
    border: 2rpx solid #e0e0e0;
    transition: all 0.3s;
    
    .type-icon {
      width: 60rpx;
      height: 60rpx;
    }
    
    text {
      font-size: 26rpx;
      color: #666;
    }
    
    &.active {
      border-color: #5cb85c;
      background: #f0f9f0;
      
      text {
        color: #5cb85c;
        font-weight: 600;
      }
    }
  }
}

/* 上传组 */
.upload-group {
  margin-bottom: 40rpx;
  
  .upload-label {
    font-size: 28rpx;
    color: #333;
    margin-bottom: 15rpx;
    
    .required {
      color: #ff4757;
      margin-right: 5rpx;
    }
  }
  
  .upload-box {
    width: 100%;
    height: 400rpx;
    background: white;
    border-radius: 12rpx;
    border: 2rpx dashed #e0e0e0;
    overflow: hidden;
    position: relative;
    
    &.small {
      width: 48%;
      height: 280rpx;
    }
    
    .upload-preview {
      width: 100%;
      height: 100%;
    }
    
    .upload-placeholder {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 15rpx;
      
      .upload-icon {
        width: 80rpx;
        height: 80rpx;
        opacity: 0.3;
      }
      
      .upload-text {
        font-size: 28rpx;
        color: #666;
      }
      
      .upload-hint {
        font-size: 24rpx;
        color: #999;
      }
      
      .upload-hint-small {
        font-size: 22rpx;
        color: #999;
      }
    }
  }
  
  .upload-tips {
    font-size: 24rpx;
    color: #999;
    margin-top: 15rpx;
    line-height: 1.6;
  }
}

.id-card-upload {
  display: flex;
  justify-content: space-between;
}

/* 协议 */
.agreement-box {
  background: #f8f9fa;
  border-radius: 12rpx;
  padding: 30rpx 25rpx;
  margin: 30rpx 0;
  font-size: 26rpx;
  line-height: 1.8;
  color: #666;
  border: 1rpx solid #e8e8e8;
  
  checkbox-group {
    display: block;
  }
  
  .agreement-label {
    display: flex;
    align-items: flex-start;
    gap: 10rpx;
  }
  
  checkbox {
    margin-top: 6rpx;
    flex-shrink: 0;
  }
  
  .agreement-text {
    flex: 1;
    line-height: 1.8;
    
    text {
      display: inline;
    }
  }
  
  .link {
    color: #5cb85c;
    font-weight: 500;
  }
}

/* 提交按钮 */
.submit-btn {
  width: 100%;
  background: #5cb85c;
  color: white;
  border-radius: 30rpx;
  height: 90rpx;
  line-height: 90rpx;
  font-size: 32rpx;
  font-weight: 600;
  border: none;
  margin-top: 40rpx;
  
  &:disabled {
    background: #ccc;
  }
  
  &::after {
    border: none;
  }
}

/* 成功页面 */
.success-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80rpx 40rpx;
  
  .success-icon {
    width: 160rpx;
    height: 160rpx;
    margin-bottom: 40rpx;
  }
  
  .success-title {
    font-size: 40rpx;
    font-weight: 600;
    color: #333;
    margin-bottom: 20rpx;
  }
  
  .success-desc {
    font-size: 28rpx;
    color: #666;
    margin-bottom: 60rpx;
  }
  
  .info-card {
    width: 100%;
    background: white;
    border-radius: 16rpx;
    padding: 40rpx 30rpx;
    margin-bottom: 60rpx;
    
    .info-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20rpx 0;
      border-bottom: 1rpx solid #f0f0f0;
      
      &:last-child {
        border-bottom: none;
      }
      
      .info-label {
        font-size: 28rpx;
        color: #666;
      }
      
      .info-value {
        font-size: 28rpx;
        color: #333;
        font-weight: 500;
        
        &.highlight {
          color: #5cb85c;
        }
      }
    }
  }
  
  .back-btn {
    width: 500rpx;
    background: white;
    color: #5cb85c;
    border: 2rpx solid #5cb85c;
    border-radius: 30rpx;
    height: 90rpx;
    line-height: 90rpx;
    font-size: 32rpx;
    font-weight: 600;
    
    &::after {
      border: none;
    }
  }
}
